<?php
namespace app\admin\controller;

use app\admin\service\Menu;
use app\BaseController;
use think\facade\View;

class Index extends BaseController
{
    public function index()
    {
        $menu = Menu::getAuthMenu();
        View::assign('menu',$menu);
        return view('index');
    }

    public function console()
    {
        return view('console');
    }


    public function hello($name = 'ThinkPHP6')
    {
        return 'hello,' . $name;
    }
}
